home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _673DF23678AC4D51A131921DD30D6885 < prev    next >
Encoding:
Text File  |  2003-07-28  |  9.7 KB  |  283 lines

  1. <html>
  2. <head>
  3. <title>Index content</title>
  4. <!--% WH_PROJECT_METATAGS %-->
  5. <base target="bsscright">
  6. <script language="javascript" src="<!--%SF_VERSION_JS%-->"></script>
  7. <script language="javascript1.2" src="<!--%SF_MOZEMULARHOLM_JS%-->"></script>
  8. <script language="javascript1.2" src="<!--%SF_MESSAGE_JS%-->"></script>
  9. <script language="javascript1.2" src="<!--%SF_PROXY_JS%-->"></script>
  10. <script language="javascript1.2" src="<!--%SF_LANGUAGE_JS%-->"></script>
  11. <script language="javascript1.2" src="<!--%SF_UTILS_JS%-->"></script>
  12. <script language="javascript1.2" src="<!--%SF_HOST_JS%-->"></script>
  13. <script language="javascript1.2" src="<!--%SF_NDX_HOST_JS%-->"></script>
  14. <script language="javascript1.2">
  15. <!--
  16. var goPopup = null;
  17. var gbPopupMenuTimeoutExpired=false;
  18. var gBsClientWidth=640;
  19. var gBsClientHeight=480;
  20. var g_bIsPopupMenuInit=false;
  21.  
  22. function WritePopupMenuLayer()
  23. {
  24.     if (!g_bIsPopupMenuInit)
  25.     {
  26.         document.write("<DIV ID='PopupMenu' STYLE='position:absolute; left:0px; top:0px; z-index:4; visibility:hidden;'></DIV>");
  27.         document.write("<STYLE TYPE='text/css'>");
  28.         if (gbMac && gbIE4) {
  29.             document.write(".PopupOver {font-family:'Arial'; color:white; background:navy; font-size:10pt; text-decoration:none;}");
  30.             document.write(".PopupNotOver {font-family:'Arial'; color:black; background:#c0c0c0; font-size:10pt; text-decoration:none;}");
  31.         } else {
  32.             document.write(".PopupOver {font-family:'Arial'; color:white; background:navy; font-size:8pt; text-decoration:none;}");
  33.             document.write(".PopupNotOver {font-family:'Arial'; color:black; background:#c0c0c0; font-size:8pt; text-decoration:none;}");
  34.         }
  35.         document.write("</STYLE>");
  36.     }
  37.     g_bIsPopupMenuInit = true;
  38. }
  39.  
  40. function PopupMenu_Invoke()
  41. {
  42.     if (gbNav6)
  43.         resetHighLight();
  44.     
  45.     if (!gbNav6  && document.readyState != "complete")
  46.         return false;
  47.     var fn_arguments = PopupMenu_Invoke.arguments; 
  48.     // Make sure we have reasonable arguments
  49.     var argLen = fn_arguments.length;
  50.     if (argLen < 3) {
  51.         return false;
  52.     }
  53.  
  54.     // Check to see if we only have one target
  55.     var strTarget = "";
  56.     
  57.     strTarget = "TARGET='" + fn_arguments[1] + "'";
  58.     
  59.     if (argLen < 5) {
  60.         // Get the place that we will be putting the topic into
  61.         var strURL = fn_arguments[3];
  62.  
  63.         if (fn_arguments[1] != null && typeof(fn_arguments[1]) != "undefined")
  64.             window.open(strURL, fn_arguments[1]);
  65.         else
  66.             window.open(strURL);
  67.             
  68.         return false;
  69.     }
  70.     
  71.     var strMenu = '<TABLE STYLE="border:2px outset white;" CELLSPACING=0';
  72.     if (gbMac && gbIE4) {
  73.         strMenu += ' CELLPADDING=4';
  74.     } else {
  75.         strMenu += ' CELLPADDING=2';
  76.     }    
  77.     strMenu += ' BGCOLOR=#c0c0c0>';
  78.  
  79.     // Add each of the items
  80.     if (gbIE55)
  81.     {
  82.         var i = 2;
  83.         while (i <= argLen - 1) {
  84.             strMenu += '<TR><TD><NOBR>'
  85.             strMenu += '<DIV STYLE="padding-left:3pt; padding-right:3pt;"><A ';
  86.             strMenu += ' onclick="parent.PopupMenu_2HandleClick(\'' + excapeSingleQuotandSlash(fn_arguments[i + 1]) + '\', \'' + fn_arguments[1] + '\');"';
  87.             strMenu += ' onmouseover="parent.PopupMenu_Over(event);"';
  88.             strMenu += ' onmouseout="parent.PopupMenu_Out(event);"';
  89.             strMenu += '>';
  90.             strMenu += '<SPAN CLASS="PopupNotOver">' + fn_arguments[i] + '</SPAN>';
  91.             strMenu += '</A></DIV></NOBR></TD></TR>';
  92.             i += 2;
  93.         }
  94.     }
  95.     else
  96.     {
  97.         var i = 2;
  98.         while (i <= argLen - 1) {
  99.             strMenu += '<TR><TD><NOBR>'
  100.             strMenu += '<DIV STYLE="padding-left:3pt; padding-right:3pt;"><A HREF="' + fn_arguments[i + 1] + '" ' + strTarget;
  101.             strMenu += ' onclick="PopupMenu_HandleClick(event);"';
  102.             strMenu += ' onmouseover="PopupMenu_Over(event);"';
  103.             strMenu += ' onmouseout="PopupMenu_Out(event);"';
  104.             strMenu += '>';
  105.             strMenu += '<SPAN CLASS="PopupNotOver">' + excapeSingleQuotandSlash(fn_arguments[i]) + '</SPAN>';
  106.             strMenu += '</A></DIV></NOBR></TD></TR>';
  107.             i += 2;
  108.         }
  109.     }
  110.     strMenu += "</TABLE>";
  111.  
  112.     if (gbMac && gbIE4) {
  113.     // ie5 in mac need something. </TABLE> is one of them.
  114.         strMenu +="<TABLE></TABLE>";
  115.     }
  116.  
  117.     var layerPopup = null;
  118.     var stylePopup = null;
  119.     var nEventX = 0;
  120.     var nEventY = 0;
  121.     var nWindowWidth = 0;
  122.     if (gbIE4||gbOpera7)
  123.     {
  124.         layerPopup = document.all["PopupMenu"];
  125.         layerPopup.innerHTML = strMenu;
  126.         stylePopup = layerPopup.style;
  127.  
  128.         _BSPSGetClientSize();
  129.  
  130.         // Get the position of the item causing the event (relative to its parent)
  131.         nEventX = window.event.clientX;
  132.         nEventY = window.event.clientY;
  133.         
  134.         if (nEventY + layerPopup.scrollHeight + 10 < gBsClientHeight) {
  135.             nEventY += document.body.scrollTop + 10;
  136.         } else {
  137.             nEventY = (document.body.scrollTop + gBsClientHeight) - layerPopup.scrollHeight - 20;
  138.         }
  139.         stylePopup.top = nEventY;
  140.  
  141.         if (nEventX + layerPopup.scrollWidth + 20 > gBsClientWidth) {
  142.             if (gBsClientWidth - layerPopup.scrollWidth < 5) {
  143.                 stylePopup.left = 5;
  144.             } else {
  145.                 stylePopup.left = gBsClientWidth - layerPopup.scrollWidth - 5;
  146.             }
  147.         } else {
  148.             stylePopup.left = nEventX + document.body.scrollLeft + 20;
  149.         }
  150.  
  151.         if (gbIE55) {
  152.             var nPosX = window.event.clientX;
  153.             var nPosY = window.event.clientY;
  154.             if (window.event.srcElement)
  155.             {
  156.                 nPosX = window.event.srcElement.offsetLeft + window.event.srcElement.offsetWidth - document.body.scrollLeft;
  157.                 nPosY = window.event.srcElement.offsetTop + window.event.srcElement.offsetHeight - document.body.scrollTop;
  158.             }
  159.             goPopup = window.createPopup();
  160.             var oPopupBody = goPopup.document.body;
  161.             goPopup.document.createStyleSheet();
  162.             goPopup.document.styleSheets[0].addRule(".PopupOver", "{font-family:\"Arial\"; cursor: hand;color:white; background:navy; font-size:8pt; text-decoration:none;}");
  163.             goPopup.document.styleSheets[0].addRule(".PopupNotOver", "{font-family:\"Arial\"; color:black; background:#c0c0c0; font-size:8pt; text-decoration:none;}");
  164.             oPopupBody.insertAdjacentHTML("afterBegin", strMenu);
  165.             goPopup.show(nPosX, nPosY, layerPopup.scrollWidth, layerPopup.scrollHeight, document.body);
  166.         }
  167.         else 
  168.         {
  169.             stylePopup.visibility = "visible";
  170.             document.onclick = PopupMenu_HandleClick;
  171.         }
  172.     } else if (gbNav6) {
  173.         layerPopup = document.getElementById("PopupMenu");
  174.         layerPopup.style.visibility = "hidden";
  175.     
  176.         var e = fn_arguments[0];
  177.         nEventX = e.pageX;
  178.         nEventY = e.pageY;
  179.         _BSPSGetClientSize();
  180.         layerPopup.innerHTML = strMenu;
  181.  
  182.         if (nEventY + layerPopup.offsetHeight + 20  <  window.pageYOffset + gBsClientHeight) {
  183.             nEventY += 20;
  184.         } else {
  185.             nEventY = gBsClientHeight + window.pageYOffset - layerPopup.offsetHeight - 20;
  186.         }
  187.  
  188.         if (nEventX + layerPopup.offsetWidth + 20 > gBsClientWidth + window.pageXOffset) {
  189.             if (gBsClientWidth + window.pageXOffset - layerPopup.offsetWidth < 20) {
  190.                 nEventX = 5;
  191.             } else {
  192.                 nEventX = gBsClientWidth + window.pageXOffset - layerPopup.offsetWidth - 20;
  193.             }
  194.         } else {
  195.             nEventX += 20;
  196.         }
  197.         layerPopup.style.top = nEventY;
  198.         layerPopup.style.left = nEventX;
  199.  
  200.         // set again to avoid the frash in netscape 6.
  201.         layerPopup.innerHTML = strMenu;
  202.         layerPopup.style.visibility = "visible";
  203.         window.onclick = PopupMenu_HandleClick;
  204.     } 
  205.  
  206.     window.gbPopupMenuTimeoutExpired = false;
  207.     setTimeout("PopupMenu_Timeout();", 100);
  208.     return false;
  209. }
  210.  
  211. function PopupMenu_Timeout()
  212. {
  213.     window.gbPopupMenuTimeoutExpired = true;
  214. }
  215.  
  216. function PopupMenu_Over(e)
  217. {
  218.     if (gbIE4||gbOpera7)
  219.         e.srcElement.className = "PopupOver";
  220.     else if (gbNav6)
  221.         e.target.parentNode.className = "PopupOver";
  222. }
  223.  
  224. function PopupMenu_Out(e)
  225. {
  226.     if (gbIE4||gbOpera7)
  227.         e.srcElement.className = "PopupNotOver";
  228.     else if (gbNav6)
  229.         e.target.parentNode.className = "PopupNotOver";
  230. }
  231.  
  232. function PopupMenu_2HandleClick(surl, starget)
  233. {
  234.     window.open(surl, starget);
  235.     goPopup.hide();
  236. }
  237.  
  238. function PopupMenu_HandleClick(e)
  239. {
  240.     if (!window.gbPopupMenuTimeoutExpired) {
  241.         return;
  242.     }
  243.  
  244.     var layerPopup = getElement("PopupMenu");
  245.     layerPopup.style.visibility = "hidden";
  246.  
  247.     return;
  248. }
  249.  
  250. //Get client size info
  251. function _BSPSGetClientSize()
  252. {
  253.     gBsClientWidth    = document.body.clientWidth;
  254.     gBsClientHeight = document.body.clientHeight;
  255. }
  256.  
  257. if (window.gbWhIHost)
  258. {
  259.     <!--% WH_WEBSKIN_ReplaceMacros("setBackgroundcolor(\"%WH_WEBSKIN.ndx.backgroundcolor%\");"); %-->
  260.     <!--% WH_WEBSKIN_ReplaceMacros("setBackground(\"%WH_WEBSKIN.ndx.background%\");"); %-->
  261.     <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Normal\", \"%WH_WEBSKIN.ndx.item.normal.font.name%\",\"%WH_WEBSKIN.ndx.item.normal.font.size%\",\"%WH_WEBSKIN.ndx.item.normal.font.color%\",\"%WH_WEBSKIN.ndx.item.normal.font.style%\",\"%WH_WEBSKIN.ndx.item.normal.font.weight%\",\"%WH_WEBSKIN.ndx.item.normal.font.decoration%\");"); %-->
  262.     <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Empty\", \"%WH_WEBSKIN.ndx.item.normal.font.name%\",\"%WH_WEBSKIN.ndx.item.normal.font.size%\",\"%WH_WEBSKIN.ndx.item.normal.font.color%\",\"%WH_WEBSKIN.ndx.item.normal.font.style%\",\"%WH_WEBSKIN.ndx.item.normal.font.weight%\",\"%WH_WEBSKIN.ndx.item.normal.font.decoration%\");"); %-->
  263.     <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Hover\", \"%WH_WEBSKIN.ndx.item.hover.font.name%\",\"%WH_WEBSKIN.ndx.item.hover.font.size%\",\"%WH_WEBSKIN.ndx.item.hover.font.color%\",\"%WH_WEBSKIN.ndx.item.hover.font.style%\",\"%WH_WEBSKIN.ndx.item.hover.font.weight%\",\"%WH_WEBSKIN.ndx.item.hover.font.decoration%\");"); %-->
  264.     <!--% WH_WEBSKIN_ReplaceMacros("setActiveBgColor(\"%WH_WEBSKIN.ndx.activeBackgroundcolor%\");"); %-->
  265.     <!--% WH_WEBSKIN_ReplaceMacros("setMargin(\"%WH_WEBSKIN.ndx.margin%\");"); %-->
  266.     <!--% WH_WEBSKIN_ReplaceMacros("setIndent(\"%WH_WEBSKIN.ndx.indent%\");"); %-->
  267.     IndexWriteClassStyle();
  268. }
  269. else
  270.     document.location.reload();
  271. //-->
  272. </script>
  273. </head>
  274. <body topmargin="2" leftmargin="2" marginwidth="0" marginheight="0" bgproperties="fixed" scroll="auto" bgcolor="white">
  275. <script languageE="JavaScript">
  276. <!--
  277. WritePopupMenuLayer();
  278. //-->
  279. </script>
  280. </body>
  281. </html>
  282.  
  283.